"use strict"

/**
 * 营口市采购网爬虫
 *  
 */

var Base = require("./base");
var yk_spider = new Base();
yk_spider.name = "营口市政府采购网";

yk_spider.getPageUrl = function (pg) {
    return "http://www.ccgp-yingkou.gov.cn/Html/NewsList.asp?SortID=121&SortPath=0,98,121,&Page=" + pg;
};

yk_spider.getItems = function ($) {
    var items = [];
    $(".ListTitle a").each(function (index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.attr("title");
        item.url = "http://www.ccgp-yingkou.gov.cn/Html/" + e.attr("href");
        item.source = yk_spider.name;
        items.push(item);

    });
    return items;
};

exports = module.exports = yk_spider;